package com.itheima05;

/**
 * @author Xiao
 * @date 2021/7/9
 */
public class AnimalTest {
    /**
     * 猫和狗
     * 测试类
     */
    public static void main(String[] args) {
        Cat cat = new Cat("汤姆", 2);
        Dog dog = new Dog();
        dog.setName("旺财");
        dog.setAge(3);
        cat.catchmouse();
        dog.watchhouse();
    }

}
